package com.smarthome.core.propertymanager.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.smarthome.base.service.ShServiceFeedbackService;
import com.smarthome.core.propertymanager.PropertyServiceFeedbackService;
import com.smarthome.domain.bean.ShServiceFeedback;
import com.smarthome.domain.vo.boss.DataGrid;
import com.smarthome.domain.vo.boss.PageHelper;

@Service("feedbackService")
public class PropertyServiceFeedbackServiceImpl implements
		PropertyServiceFeedbackService {

	@Resource
	private ShServiceFeedbackService shServiceFeedbackService;

	@Override
	public DataGrid dataGrid(PageHelper page, Long id) {
		return shServiceFeedbackService.queryShServiceFeedbacks(page, id);
	}

	@Override
	public void saveOrEdit(ShServiceFeedback feedback) {
		shServiceFeedbackService.saveOrUpdate(feedback);
	}

	@Override
	public List<ShServiceFeedback> getPropertyServiceFeedbackList(
			ShServiceFeedback queryServiceFeedback) {
		return shServiceFeedbackService.selectEntryList(queryServiceFeedback);
	}

	@Override
	public int insert(ShServiceFeedback serviceFeedback) {
		return shServiceFeedbackService.insert(serviceFeedback);
	}

	@Override
	public int count(ShServiceFeedback serviceFeedback) {
		return shServiceFeedbackService.count(serviceFeedback);
	}

}
